.f-color-picker-component {
    display: inline-block;
    position: relative;
    line-height: normal;

    .color-picker-wrapper {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;

        .color-picker-input {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            flex: 1 1 auto;
            width: 1%;
            min-width: 200px;
        }

        .color-picker-trigger {
            display: inline-block;
            box-sizing: border-box;
            height: calc(1.62503rem + 2px);
            width: calc(1.62503rem + 2px);
            padding: 0.1875rem;
            border: 1px solid #e6e6e6;
            border-left: none;
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
            font-size: 0;
            position: relative;
            cursor: pointer;

            .color-picker-trigger-inner {
                position: relative;
                display: block;
                box-sizing: border-box;
                border: 1px solid #999;
                border-radius: 2px;
                width: 100%;
                height: 100%;
                text-align: center;

                &.is-alpha {
                    background-image: url();
                }

                div {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

.color-picker-panel {
    display: block;
    position: absolute;
    width: 300px;
    z-index: 3000;
    padding: 6px;
    box-sizing: content-box;
    background-color: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    &.disabled {
        visibility: hidden;
    }

    .color-picker-main {
        padding-bottom: 6px;
    }

    .input-btn {
        margin-top: 6px;
        text-align: right;

        input {
            float: left;
            width: 180px;
            height: 28px;
            line-height: 28px;
            cursor: pointer;
            -webkit-appearance: none;
            background-color: #fff;
            border-radius: 4px;
            border: 1px solid #dcdfe6;
            box-sizing: border-box;
            color: #606266;
            font-size: inherit;
            outline: none;
            padding: 0 7px;
            transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);

            &:focus {
                border-color: #409eff;
            }
        }

        .btn-clear {
            background-color: #fff;
            border: none;
            outline: none;
            color: #409eff;
        }
    }
}